package io.github.weiranyi.service.impl;

import io.github.weiranyi.mapper.ProductMapper;
import io.github.weiranyi.pojo.Product;
import io.github.weiranyi.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper; // idea误提示

    @Override
    public Product findById(Integer productId) {
        return productMapper.selectById(productId);
    }
}
